package com.lihao.sam.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 赵申奥
 * @Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class HealthCheck {
    private Integer id;
    private String address;
    private String buildNo;
    private String floorNo;
    private String roomNo;
    private Integer groundScore;
    private Integer tableScore;
    private Integer bedScore;
    private Integer score;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date ctime;

    public HealthCheck(String address, String buildNo, String floorNo, String roomNo, Integer groundScore, Integer tableScore, Integer bedScore, Integer score) {
        this.address = address;
        this.buildNo = buildNo;
        this.floorNo = floorNo;
        this.roomNo = roomNo;
        this.groundScore = groundScore;
        this.tableScore = tableScore;
        this.bedScore = bedScore;
        this.score = score;
    }
}
